package com.front.managementfront.fegin;

import com.hkts.management.common.utils.Result;
import com.hkts.management.common.vo.UserBasicInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * @ClassNameAuthFeign
 * @Description
 * @Author yck
 * @Date2021-03-11 9:11
 * @Version V1.0
 **/
@FeignClient(value="management-authentication",configuration = FeignHeadersInterceptor.class)
public interface IUserAppServiceClient {
    @RequestMapping(value = "/authentication/sendMessageByUserId",method = RequestMethod.GET)
    Result sendMessageByUserId(@RequestParam(value = "userId") String userId, @RequestParam(value = "msg") String msg);

    @RequestMapping(value = "/authentication/remoteUserBasicInfo",method = RequestMethod.GET)
    Result<UserBasicInfoVo> remoteUserBasicInfo();
    @GetMapping("/authentication/getUserBasicInfoVoByuserId/{userId}")
    public Result<UserBasicInfoVo> getUserBasicInfoVoByuserId(@PathVariable String userId);
    @GetMapping("/authentication/getUsersByuserIds")
    public Result<Map<String, Object>> getUsersByuserIds (@RequestParam("userIds") List<String> userIds);
}
